using MediatR;
using Zhaoxi.Zhihu.Core.QuestionAggregate.Events;


namespace Zhaoxi.Zhihu.HotService.Handlers;

public class QuestiorViewedEventHaldler(QuestionViewCountService  questionViewCountService):INotificationHandler<QuestionViewedEvent>
{
    public Task Handle(QuestionViewedEvent notification, CancellationToken cancellationToken)
    {
        questionViewCountService.Add (notification. QuestionId);
        return Task.CompletedTask;
    }
}
//这里添加上传